#include <unordered_map>
#include <string>
#include <iostream>

using namespace std;

int main()
{
    string s1, s2;
again:
    while (cin >> s1 >> s2)
    {
        unordered_map<char, int> sc1, sc2;
        for (auto &ch : s1)
            sc1[ch]++;
        for (auto &ch : s2)
            sc2[ch]++;

        for (auto &[x, y] : sc2)
        {
            if (sc1.count(x) == 0 || y > sc1[x])
            {
                cout << "No" << endl;
                goto again;
            }
        }
        cout << "Yes" << endl;
    }

    return 1;
}